package org.jeecg.modules.business.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.AutoRecordLog;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 出口报价单-包装材料
 * @Author: jeecg-boot
 * @Date:   2024-05-31
 * @Version: V1.0
 */
@Data
@TableName("buss_outlet_quote_package")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="buss_outlet_quote_package对象", description="出口报价单-包装材料")
@AutoRecordLog(value = 1,existParent = true,parentFiled="outQuoteId",parentTable="buss_outlet_quote")
public class BussOutletQuotePackage implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
	/**物料id*/
	@Excel(name = "物料id", width = 15)
    @ApiModelProperty(value = "物料id")
    private String goodsId;
	/**出口报价单id*/
	@Excel(name = "出口报价单id", width = 15)
    @ApiModelProperty(value = "出口报价单id")
    private String outQuoteId;
	/**名字*/
	@Excel(name = "名字", width = 15)
    @ApiModelProperty(value = "名字")
    private String name;
	/**规格*/
	@Excel(name = "规格", width = 15)
    @ApiModelProperty(value = "规格")
    private String spec;
	/**件/吨*/
	@Excel(name = "件/吨", width = 15)
    @ApiModelProperty(value = "件/吨")
    private String ton;
	/**克数*/
	@Excel(name = "克数", width = 15)
    @ApiModelProperty(value = "克数")
    private Integer grams;
	/**个数*/
	@Excel(name = "个数", width = 15)
    @ApiModelProperty(value = "个数")
    private Integer number;
	/**外包装1-个数*/
	@Excel(name = "外包装1-个数", width = 15)
    @ApiModelProperty(value = "外包装1-个数")
    private Integer packageNumber1;
	/**外包装1-单价*/
	@Excel(name = "外包装1-单价", width = 15)
    @ApiModelProperty(value = "外包装1-单价")
    private String packageUnitPrice1;
	/**外包装1-金额*/
	@Excel(name = "外包装1-金额", width = 15)
    @ApiModelProperty(value = "外包装1-金额")
    private String packageAmount1;
	/**外包装2-个数*/
	@Excel(name = "外包装2-个数", width = 15)
    @ApiModelProperty(value = "外包装2-个数")
    private Integer packageNumber2;
	/**外包装2-单价*/
	@Excel(name = "外包装2-单价", width = 15)
    @ApiModelProperty(value = "外包装2-单价")
    private String packageUnitPrice2;
	/**外包装2-金额*/
	@Excel(name = "外包装2-金额", width = 15)
    @ApiModelProperty(value = "外包装2-金额")
    private String packageAmount2;
	/**内包装-个数*/
	@Excel(name = "内包装-个数", width = 15)
    @ApiModelProperty(value = "内包装-个数")
    private Integer innerPackageNumber;
	/**内包装-单价*/
	@Excel(name = "内包装-单价", width = 15)
    @ApiModelProperty(value = "内包装-单价")
    private String innerPackageUnitPrice;
	/**内包装-金额*/
	@Excel(name = "内包装-金额", width = 15)
    @ApiModelProperty(value = "内包装-金额")
    private String innerPackageAmount;
	/**其他*/
	@Excel(name = "其他", width = 15)
    @ApiModelProperty(value = "其他")
    private String other;
	/**包装成本*/
	@Excel(name = "包装成本", width = 15)
    @ApiModelProperty(value = "包装成本")
    private String packageCost;

    @JsonIgnore
    @ApiModelProperty(value = "日志时间")
    private String logtime;

    /**
     * 父类日志时间-方便历史搜索
     */
    @JsonIgnore
    @ApiModelProperty(value = "日志时间")
    private String parentLogtime;
}
